﻿using FytSoa.Common;
using FytSoa.Core.Model.Sw;
using FytSoa.Service.DtoModel;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace FytSoa.Service.Interfaces
{
    /*!
    * 文件名称：Sw_types服务接口
    */
	public interface ISw_typesService: IBaseServer<Sw_types>
	{
        /// <summary>
        /// 获得分页类别列表
        /// </summary>
        /// <param name="param">T</param>
        /// <returns></returns>
        Task<ApiResult<Page<SpectTypeDto>>> GetPageAsync(PageParm param);

        /// <summary>
        /// 获得类别列表
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<List<SpectTypeDto>>> GetListAsync();

        /// <summary>
        /// 查询所有品牌和所有规格
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<SpectTypeBrandDto>> GetAllBrandAndType();
    }
}